﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace HotelManageSystem.Models
{
    /// <summary>
    /// Class Name:     InsureModel
    /// Author:         Wangzx
    /// Creation Date:  2012-3-26
    /// Description:    保险系数的设定ViewModel
    /// QA:             
    /// -----------------------------------------
    /// </summary>
    public class InsureModel
    {

        [Display(Name = "养老保险")]
        [RegularExpression(@"^(0([\.]\d*[0-9]+)|0|1)$", ErrorMessage = "只能输入0-1的小数")]
        public string EndowmentAssurance { get; set; }

        [Display(Name = "医疗保险")]
        [RegularExpression(@"^(0([\.]\d*[0-9]+)|0|1)$", ErrorMessage = "只能输入0-1的小数")]
        public string MedicalInsurance { get; set; }

        [Display(Name = "失业保险")]
        [RegularExpression(@"^(0([\.]\d*[0-9]+)|0|1)$", ErrorMessage = "只能输入0-1的小数")]
        public string UnemploymentInsurance { get; set; }

        [Display(Name = "工伤保险")]
        [RegularExpression(@"^(0([\.]\d*[0-9]+)|0|1)$", ErrorMessage = "只能输入0-1的小数")]
        public string EmploymentInjuryInsurance { get; set; }

        [Display(Name = "生育保险")]
        [RegularExpression(@"^(0([\.]\d*[0-9]+)|0|1)$", ErrorMessage = "只能输入0-1的小数")]
        public string MaternityInsurance { get; set; }

        [Display(Name = "公积金")]
        [RegularExpression(@"^(0([\.]\d*[0-9]+)|0|1)$", ErrorMessage = "只能输入0-1的小数")]
        public string ProvidentFund { get; set; }
    }
}
